import React from 'react'
import { Link, NavLink } from 'umi'
import './index.less'

const Index = (props: any) => {
  return (
    <div>
      <h2>Header</h2>
      <hr />
      {/* <Link to='/user/one'>用户1</Link> */}
      {/* <Link to='/user/two'>用户2</Link> */}
      {/* 使用NavLink标签，被点击后将自动添加一个.acive类名，方便修改锚链接样式 */}
      <NavLink to='/user/one'>用户1</NavLink>
      <NavLink to='/user/two'>用户2</NavLink>
      {props.children}
      <h2>Footer</h2>
    </div>
  )
}
export default Index


